﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using UmlDesigner.Model;

namespace UmlDesigner.Gui
{
    public partial class MethodImplementationForm : Form
    {
        internal MethodImplementationForm(UmlMethod method)
        {
            InitializeComponent();

            Icon = Properties.Resources.ApplicationIcon;

            targetMethod = method;
            codeRichTextBox.Text = method.implementation;
        }

        private UmlMethod targetMethod = null;

        private void button2_Click(object sender, EventArgs e)
        {
            targetMethod.implementation = codeRichTextBox.Text;
        }
    }
}
